﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WowParserLib.Events;
using WowParserLib.Events.SuffixArgs;

namespace WowParserLib.EventParsers
{
    public class LeechArgsParser: EventArgsParser
    {
        public LeechArgsParser(int startIndex)
            : base(startIndex)
        {
        }


        public override WowParserLib.Events.EventArguments Parse(string[] args)
        {
            //public DrainArgs(int amount, PowerType powerType, int extraAmount)
            int amount = int.Parse(args[StartIndex]);
            PowerType powerType = (PowerType)Convert.ToInt32(args[StartIndex + 1], 16);
            int extraAmount = int.Parse(args[StartIndex + 2]);
            return new LeechArgs(amount, powerType, extraAmount);
        }
    }
}
